<?php


namespace app\admin\validate;

class CategoryValidate extends BaseValidate
{
    protected $rule = [
        'title' => 'require',
        'pid' => 'require|isPositiveIntegerOrZero',
    ];

    protected $message = [
        'title.require' => '请输入分类名',
        'pid.require' => '请选择上级分类',
        'pid.isPositiveIntegerOrZero' => '请选择上级分类',
    ];
}